You can format text in bold or italic.
This is just text: exp(1).
In a code chunk you can calculate the result.
exp(1)
## [1] 2.718282
# install.packages("plotly") # run this, if you did not install plotly package before.
library(plotly)
## Loading required package: ggplot2
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
data("volcano")
plot_ly(z = volcano, type = "surface")